FROM php:8.2-fpm

RUN apt-get update && apt install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-dev git zip unzip

RUN docker-php-ext-configure gd --with-jpeg=/usr/include --with-freetype=/usr/include/

RUN docker-php-ext-install -j$(nproc) gd mysqli pdo_mysql

RUN docker-php-ext-enable gd mysqli pdo_mysql

